package cn.com.self.apis.collect.entity;

import java.io.Serializable;
import java.util.Date;

import cn.com.selfsoft.smartcity.commons.entity.AbstractEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 *
 * </p>
 *
 * @author liangwt
 * @since 2020-05-29
 */
@ApiModel(value = "收藏类")
public class CollectionInfo  extends AbstractEntity implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * 会员id
     */
    @ApiModelProperty(value = "会员id")
    private Long userId;

    /**
     * 收藏关联id
     */
    @ApiModelProperty(value = "收藏关联id")
    private Long collectionId;

    /**
     * 收藏类型（1需求、2用户）
     */
    @ApiModelProperty(value = "收藏类型（1需求、2用户）")
    private Integer collectionType;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;

    /**
     * 收藏内容的标题
     */
    @ApiModelProperty(value = "收藏内容的标题")
    private String collectionTitle;



    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getCollectionId() {
        return collectionId;
    }

    public void setCollectionId(Long collectionId) {
        this.collectionId = collectionId;
    }

    public Integer getCollectionType() {
        return collectionType;
    }

    public void setCollectionType(Integer collectionType) {
        this.collectionType = collectionType;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCollectionTitle() {
        return collectionTitle;
    }

    public void setCollectionTitle(String collectionTitle) {
        this.collectionTitle = collectionTitle;
    }


}
